package com.example.sls.service.impl.executeSQL;



import com.example.sls.mapper.executeSQL.ExecuteSQLMapper;
import com.example.sls.pojo.teacher.EmpDtView;
import com.example.sls.service.executeSQL.ExecuteSQLService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ExecuteSQLServiceImpl implements ExecuteSQLService {
    @Autowired
    private ExecuteSQLMapper executeSQLMapper;


    @Override
    public List<EmpDtView> queryExecuteAll(String sql) {
        return executeSQLMapper.queryExecuteAll(sql);
    }

    @Override
    public Integer queryExecuteCount(String sql) {
        return executeSQLMapper.queryExecuteCount(sql);
    }

    @Override
    public Integer queryExecuteSum(String sql) {
        return executeSQLMapper.queryExecuteSum(sql);
    }

    @Override
    public List<String> queryExecuteStr(String sql) {
        return executeSQLMapper.queryExecuteStr(sql);
    }

    @Override
    public List<Integer> queryExecuteInt(String sql) {
        return executeSQLMapper.queryExecuteInt(sql);
    }

    @Override
    public List<Date> queryExecuteDate(String sql) {
        return executeSQLMapper.queryExecuteDate(sql);
    }

}
